package ModelLayer;

import java.util.Date;
import java.util.ArrayList;

public class SalesOrder {
	private int orderId;
	private Date creationDate;
	private Date paymentDate;
	private String status;
	private double amount;
	private double discount;
	private Customer c;
	private ArrayList<SalesLine> sl;
	private Delivery d;
	
	public SalesOrder(int orderId, Date creationDate, Date paymentDate, String status, double amount, double discount,Customer c, ArrayList<SalesLine> sl, Delivery d){
		this.orderId = orderId;
		this.creationDate = creationDate;
		this.status = status;
		this.amount = amount;
		this.discount = discount;
		this.c = c;
		this.sl = sl;
		this.d = d;
	}
	
	public SalesOrder(){
		this.orderId = 0;
		this.creationDate = new Date();
		this.status = "";
		this.amount = 0.0;
		this.discount = 0.0;
		this.c = new Customer();
		this.sl = new ArrayList<SalesLine>();
		this.d = new Delivery();
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public Date getPaymentDate() {
		return paymentDate;
	}

	public void setPaymentDate(Date paymentDate) {
		this.paymentDate = paymentDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public double getDiscount() {
		return discount;
	}

	public void setDiscount(double discount) {
		this.discount = discount;
	}

	public Customer getC() {
		return c;
	}

	public void setC(Customer c) {
		this.c = c;
	}

	public ArrayList<SalesLine> getSl() {
		return sl;
	}

	public void setSl(ArrayList<SalesLine> sl) {
		this.sl = sl;
	}

	public Delivery getD() {
		return d;
	}

	public void setD(Delivery d) {
		this.d = d;
	}
}
